package com.ib.review.service;

import com.ib.review.pojo.dto.CompareParam;
import com.ib.review.pojo.dto.CompareRecordQuery;
import com.ib.review.pojo.dto.CompareResultQuery;
import com.ib.review.pojo.dto.CompareRoleParam;
import com.ib.review.pojo.po.CompareRecordPO;
import com.ib.review.pojo.po.CompareResultPO;
import com.ib.review.pojo.vo.CompareRecordVO;
import com.ib.review.pojo.vo.HeaderNode;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface CompareService {

    void upload(MultipartFile file, CompareParam param);

    Map<String,Map<String, List<HeaderNode>>> queryHeading(CompareParam param);

    void addRole(CompareRoleParam param);

    List<CompareResultPO> queryResult(CompareResultQuery compareResultQuery);

    List<CompareRecordPO> queryRecord(CompareRecordQuery compareRecordQuery);

    CompareRecordVO queryRecordById(CompareRecordQuery compareRecordQuery);

    byte[] exportToExcel(Map<String, Object> requestData);
}
